package com.bwie.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @Author: zhaijiaqi
 * @Date: 2025/5/21 15:25
 * @Description:
 **/
@Data
public class LoginVo implements Serializable {
    @NotBlank(message = "用户名称不能为空")
    @Size(min = 8,message = "用户名称不能小于八位")
    private String userName;
    @NotBlank(message = "用户密码不能为空")
    @Pattern(regexp = "^(?=.*\\d)(?=.*[a-zA-Z])[a-zA-Z0-9]{6,}$",message = "密码长度不能小于六位")
    private String userPass;
}
